package com.chexiehui.jc.entity;

import com.blankj.utilcode.util.StringUtils;

import java.io.Serializable;

/**
 * 询价记录
 */
public class ShopInquiryInfo implements Serializable {
    private String Id;//;// (string, optional): 询价id ,
    private String AdviserId;//;// (string, optional): 顾问id ,
    private String AdviserPhoto;//;// (string, optional): 顾问头像 ,
    private String AdviserName;//;// (string, optional): 顾问名称 ,
    private String AdviserTel;// (string, optional): 顾问联系电话 ,
    private String ShopName;// (string, optional): 4S店名称 ,
    private double ShopLon;// (number, optional): 4S店经度 ,
    private double ShopLat;// (number, optional): 4S店纬度 ,
    private String Type;// (string, optional): 前缀[4S店]或者其他，目前只有4S店 ,
    private String CarId;// (string, optional): 车型id ,
    private String CarName;// (string, optional): 车型名称 ,
    private String CarImg;// (string, optional): 车型图片 ,
    private String Price;// (string, optional): 车型价格 ,
    private String CreateTime;// (string, optional): 创建时间 ,
    private String CreateUser;// (string, optional): 创建人id ,
    private int State;// (integer, optional): 询价状态 1.待联系2.已联系

    public String getId() {
        return Id == null ? "" : Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getAdviserId() {
        return AdviserId == null ? "" : AdviserId;
    }

    public void setAdviserId(String adviserId) {
        AdviserId = adviserId;
    }

    public String getAdviserPhoto() {
        return AdviserPhoto == null ? "" : AdviserPhoto;
    }

    public void setAdviserPhoto(String adviserPhoto) {
        AdviserPhoto = adviserPhoto;
    }

    public String getAdviserName() {
        return AdviserName == null ? "" : AdviserName;
    }

    public void setAdviserName(String adviserName) {
        AdviserName = adviserName;
    }

    public String getAdviserTel() {
        return AdviserTel == null ? "" : AdviserTel;
    }

    public void setAdviserTel(String adviserTel) {
        AdviserTel = adviserTel;
    }

    public String getShopName() {
        return ShopName == null ? "" : ShopName;
    }

    public void setShopName(String shopName) {
        ShopName = shopName;
    }

    public double getShopLon() {
        return ShopLon;
    }

    public void setShopLon(double shopLon) {
        ShopLon = shopLon;
    }

    public double getShopLat() {
        return ShopLat;
    }

    public void setShopLat(double shopLat) {
        ShopLat = shopLat;
    }

    public String getType() {
        return Type == null ? "" : Type;
    }

    public void setType(String type) {
        Type = type;
    }

    public String getCarId() {
        return CarId == null ? "" : CarId;
    }

    public void setCarId(String carId) {
        CarId = carId;
    }

    public String getCarName() {
        return CarName == null ? "" : CarName;
    }

    public void setCarName(String carName) {
        CarName = carName;
    }

    public String getCarImg() {
        return CarImg == null ? "" : CarImg;
    }

    public void setCarImg(String carImg) {
        CarImg = carImg;
    }

    public String getPrice() {
        return Price == null ? "" : Price;
    }
    public String getPriceUnit() {
        return StringUtils.isEmpty(Price) ? "未知" :Price.equals("暂无报价") ? Price :  "￥" + Price + "万";
    }

    public void setPrice(String price) {
        Price = price;
    }

    public String getCreateTime() {
        return CreateTime == null ? "" : CreateTime;
    }

    public void setCreateTime(String createTime) {
        CreateTime = createTime;
    }

    public String getCreateUser() {
        return CreateUser == null ? "" : CreateUser;
    }

    public void setCreateUser(String createUser) {
        CreateUser = createUser;
    }

    public int getState() {
        return State;
    }

    public String getStateStr() {
        return State == 1 ? "待顾问联系" : "已联系";
    }

    public void setState(int state) {
        State = state;
    }
}
